﻿<%@ Page Language="C#" MasterPageFile="~/Doanhnghiep/MasterPage.master" AutoEventWireup="true" CodeFile="SanPham_DN.aspx.cs" Inherits="Doanhnghiep_SanPham_DN" Title="Hiển thị sản phẩm của doanh nghiệp" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 <div>
       
        <div class="title" style="font-size: 18pt; color: #0000ff; font-style: italic">
            Danh sách Sản Phẩm</div>
        <div style="width:100%;">
            <div style="display:table-cell; width:83%;float:left; height: 32px; text-align: center; font-size :small">
                Tên Sản Phẩm:<asp:TextBox ID="txt_tensp" runat="server" Width="112px"></asp:TextBox>
                &nbsp;&nbsp;<asp:Button ID="btn_Tim" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" Width="120px" />           
                <br />
            </div>
            <div class="addnewrow" style="display:table-cell; width:14%;float:right;">
                <asp:HyperLink ID="hyp_add" runat="server" NavigateUrl="~/Doanhnghiep/ThemSP_DN.aspx">Thêm Mới</asp:HyperLink>
            </div>        
        </div>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" style ="font-size :smaller ;" border="0">
                <thead>
                    <tr class="listtableheader" style="text-align:center;background-color:#cccccc ;height =30 ; font-size:small;">
                        <th>Mã</th>
                        <th>Tên Sản Phẩm</th>
                        <th>Danh Mục</th>
                        <th>Hình Ảnh</th>
                        <th>Gía Gốc</th>
                        <th>Giá Bán</th>
                        <th>Chiết Khấu</th>
                        <th>Tình Trạng</th> 
                        <th>Sửa</th>                        
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr style="text-align:center">
                <td><%#Eval("MaSP") %></td>
                <td><asp:HyperLink ID="hyp_tensp" runat="server"></asp:HyperLink></td>
                <td><asp:Literal ID="lit_danhmuc" runat="server" /></td>
                <td>
                    <asp:Image ID="img_hinhanh" Width ="100" Height = "100" runat="server" />
                </td>
                <td><%#Eval("giagoc") %></td>
                <td><%#Eval("giaban") %></td>
                <td><%#Eval("chietkhau") %>%</td>
                  <td><asp:HyperLink ID="hyp_tinhtrang" runat="server"></asp:HyperLink></td>
                <td><asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>                  
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater> 
            <br />
        
        </div>
 </div>
    <cc1:PagerV2_8 ID="Pager" runat="server" Height="8px" Width="80px" />
 </div>
</asp:Content>

